package com.javaProject.service;

import com.javaProject.entity.Userkey;
import com.baomidou.mybatisplus.extension.service.IService;

import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.spec.InvalidKeySpecException;

/**
* @author ASUS
* @description 针对表【userkey】的数据库操作Service
* @createDate 2024-05-04 17:11:14
*/
public interface UserkeyService extends IService<Userkey> {

    PrivateKey getPrivateKey(String username) throws NoSuchAlgorithmException, InvalidKeySpecException;

    boolean saveKey(String username, PrivateKey privateKey);

}
